package com.example.wemedia.controller;

import com.example.wemedia.service.WmUserService;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmUserDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * wm用户控制器
 *
 */
@RestController
@RequestMapping("/wemedia/wmuser/v1")
public class WmUserController {
    @Autowired
    WmUserService wmUserService;

    /**
     * 添加wm用户
     *
     * @param wmUserDto wm用户dto
     */
    @PostMapping("add_wm_user")
    public ResponseResult addWmUser(@RequestBody WmUserDto wmUserDto){
        System.out.println(wmUserDto);
        return wmUserService.addWmUser(wmUserDto);
    }
    
}
